package net.kleinhenz.questor.model;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;

public class Skill extends VariableContainer implements MediaContainer
{
	@Attribute(name="skillid", required=true)
	private String id = null;

	@Attribute(required=true)
	private String name = null;

	@Attribute(required=true)
	protected String type = null;

	@Element(required=true)
	private String description = null;

	@ElementList(required=false)
	private List<Media> multimedia = new ArrayList<Media>();

	public Skill()
	{
		super();
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getType()
	{
		return this.type;
	}
	
	public void setType(String type)
	{
		this.type = type;
	}
	
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}
	
	@Override
	public List<Media> getMultimedia()
	{
		return multimedia;
	}

	@Override
	public void setMultimedia(List<Media> multimedia)
	{
		this.multimedia = multimedia;
	}
}
